home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / unmkmapping < prev    next >
Text File  |  2001-04-06  |  889b  |  30 lines

  1. SYNOPSIS
  2.         mixed* unmkmapping(mapping map)
  3.  
  4. DESCRIPTION
  5.         Take mapping <map> and return an array of arrays with the keys
  6.         and values from the mapping.
  7.  
  8.         The return array has the form ({ keys[], data0[], data1[], ... }),
  9.         with keys[] being the array of all keys, data0[] the array of
  10.         all values in the first column, data1[] the array of all values
  11.         in the second column, etc. In particular, the data for key[x]
  12.         is stored in data0[x], data1[x], etc.
  13.  
  14.         unmkmapping() is inverse to mkmapping(), so that
  15.  
  16.             apply(#'mkmapping, unmkmapping(m)) == m
  17.  
  18.         holds.
  19.  
  20. EXAMPLE
  21.         unmkmapping(m)
  22.           --> returns ({ ({1, 2}), ({ 10, 11 }), ({ 20, 21 }) })
  23.  
  24. HISTORY
  25.         Introduced in LDMud 3.2.6.
  26.  
  27. SEE ALSO
  28.         mappings(LPC), mappingp(E), m_indices(E), m_values(E),
  29.         m_delete(E), sizeof(E), widthof(E).
  30.